package com.wing.storage.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 仓库产品出库作业
 *
 * @author xiayang
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pro_product_storage_work_out")
public class ProductStorageWorkOut extends BaseEntity<ProductStorageWorkOut> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 出库作业编码
     */
    private String code;

    /**
     * 出库仓库
     */
    @TableField(exist = false)
    private String warehouseName;

    @TableField(exist = false)
    private Long warehouseId;

    /**
     * 出库类型
     */
    private Long outTypeId;

    /**
     * 出库类型名称
     */
    @TableField(exist = false)
    private String outTypeName;

    /**
     * 出库类型CODE
     */
    @TableField(exist = false)
    private String outTypeCode;

    /**
     * 领料申请单
     */
    private Long receiptRecordId;

    /**
     * 领料申请单编号
     */
    @TableField(exist = false)
    private String receiptRecordCode;

    /**
     * 领料申请人
     */
    @TableField(exist = false)
    private String receiptRecordCreatorName;

    /**
     * 领料申请时间
     */
    @TableField(exist = false)
    private String receiptRecordCreateTime;

    /**
     * 审核人
     */
    @TableField(exist = false)
    private Long auditPerson;

    /**
     * 审核人名称
     */
    @TableField(exist = false)
    private String auditPersonName;

    /**
     * 审核时间
     */
    @TableField(exist = false)
    private String auditTime;

    /**
     * 仓库产品出库作业列表
     */
    @TableField(exist = false)
    private List<ProductStorageWorkOutDetail> productStorageWorkOutDetailList;


    @TableField(exist = false)
    private String customerId;

/*    private String supplierCategoryId;

    private String supplierId;*/
    @TableField(exist = false)
    private String externalCode;
}
